<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/6/8
  Time: 10:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>

  <script type="text/javascript" src="admin/lib/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  <script type="text/javascript">
        $(function () {
            $("button").click(function () {
                    $.ajax({
                        url:"/index4",
                        data:{
                            userName:"lisi",
                            userPassword:123
                        },
                        type:"POST",
                        dataType:"json",
                        success:function (data) {
                            console.log(data)
                        }
                    })
            });

        })

  </script>

  <body>
      <a href="/index.html">测试</a>
      <a href="/index1?id=1">测试1</a>

      <a href='/index4/{"username":"lisi","age":123}'>Rest请求</a>
      <button>Ajax</button>

     <form action="/index5" method="post" enctype="multipart/form-data">
        用户名：<input name="userName" type="text" value="">
        密码：<input name="userPassword" type="password" value="">
         文件：<input type="file" name="picpath" value="">
         文件：<input type="file" name="picpath1" value="">
        <input type="submit" value="提交">
     </form>




  </body>
</html>
